<?php
namespace app\admin\services;
use app\common\services\BaseService;
use app\common\util\Assert;

class EnterpriseService extends BaseService
{
    public function authEnterprise($data){
        Assert::notEmpty($data,['id','status']);
        $this->getModelInstance()->where(['id'=>$data['id']])->save(['status'=>$data['status'],
        'reason'=>empty($data['reason'])?'':$data['reason']]);
        return [true];
    }
}